package com.example.tourpal.model;

import java.io.Serializable;

public class Person implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -4143195591006325117L;
	private int commentNum;//评价数
	private String destination;//目的地
	private String endTime;//结束时间
	private String headPortrait;//头像url
	private int ispublic;//是否结伴
	private int journeyId;
	private String name;//名字
	private String nikeName;//昵称
	private int praiseNum;//点赞数
	private String startTime;//开始时间
	private int userId;//用户id
	
	public static Person getTestPerson(){
		return new Person(3000, "上海", "2017-2-14", "", 1, 11, "wuliqing", "小队长", 40, "2017-2-10", 11);
	}
	
	public int getCommentNum() {
		return commentNum;
	}
	public void setCommentNum(int commentNum) {
		this.commentNum = commentNum;
	}
	public String getDestination() {
		return destination;
	}
	public void setDestination(String destination) {
		this.destination = destination;
	}
	public String getEndTime() {
		return LocalDataLoaderHelp.shortTime(endTime);
	}
	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	public String getHeadPortrait() {
		return headPortrait;
	}
	public void setHeadPortrait(String headPortrait) {
		this.headPortrait = headPortrait;
	}
	public int isIspublic() {
		return ispublic;
	}
	public void setIspublic(int ispublic) {
		this.ispublic = ispublic;
	}
	public int getJourneyId() {
		return journeyId;
	}
	public void setJourneyId(int journeyId) {
		this.journeyId = journeyId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getNikeName() {
		return nikeName;
	}
	public void setNikeName(String nikeName) {
		this.nikeName = nikeName;
	}
	public int getPraiseNum() {
		return praiseNum;
	}
	public void setPraiseNum(int praiseNum) {
		this.praiseNum = praiseNum;
	}
	public String getStartTime() {
		return LocalDataLoaderHelp.shortTime(startTime);
	}
	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}
	public int getUserId() {
		return userId;
	}
	public Person(int commentNum, String destination, String endTime,
			String headPortrait, int ispublic, int journeyId, String name,
			String nikeName, int praiseNum, String startTime, int userId) {
		super();
		this.commentNum = commentNum;
		this.destination = destination;
		this.endTime = endTime;
		this.headPortrait = headPortrait;
		this.ispublic = ispublic;
		this.journeyId = journeyId;
		this.name = name;
		this.nikeName = nikeName;
		this.praiseNum = praiseNum;
		this.startTime = startTime;
		this.userId = userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	@Override
	public String toString() {
		return "Person [commentNum=" + commentNum + ", destination="
				+ destination + ", endTime=" + endTime + ", headPortrait="
				+ headPortrait + ", ispublic=" + ispublic + ", journeyId="
				+ journeyId + ", name=" + name + ", nikeName=" + nikeName
				+ ", praiseNum=" + praiseNum + ", startTime=" + startTime
				+ ", userId=" + userId + "]";
	}
}
